//
//  LoginController.h
//  FavClient
//
//  Created by MagicStudio on 12-4-17.
//  Copyright 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MainController.h"


@interface LoginController : UIViewController <UIAlertViewDelegate,UITextFieldDelegate> {
    
    IBOutlet UITextField *username ;
    IBOutlet UITextField *password ;
    UIAlertView *loginAlertDialog ;
    IBOutlet UIImageView *inputFrame ;
    IBOutlet UIImageView *logo ;
    MainController *mTabBarController ;
    IBOutlet UILabel *mVersion ;
    
    
}

@property (nonatomic,retain) IBOutlet UITextField *username ;
@property (nonatomic,retain) IBOutlet UITextField *password ;
@property (nonatomic,retain) IBOutlet UIAlertView *loginAlertDialog ;
@property (nonatomic,retain) IBOutlet UIImageView *inputFrame ;
@property (nonatomic,retain) IBOutlet UIImageView *logo ;
@property (nonatomic,retain) IBOutlet MainController *mTabBarController ;
@property (nonatomic,retain) UILabel *mVersion ;

-(void) closeKeybord ;
-(void) startLogin : (id) params ;
-(void) endLogin : (NSString *) isSuccess;
-(IBAction) closeKeybordEvent : (id) sender ;
-(IBAction) loginEvent : (id) sender ;

@end
